<%@ page import="java.util.Enumeration" %><%--
  Created by IntelliJ IDEA.
  User: xiaodai
  Date: 2024/9/18
  Time: 9:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  import="java.util.*"%>
<html>
<head>
    <title>使用request内置对象</title>
</head>
<body bgcolor="#ccffcc">
<h1>您刚才输入的内容是</h1>
<%
    Enumeration enu= request.getParameterNames();
    //循环获取的参数名称
    while(enu.hasMoreElements()){
        String parameterNmae = (String)enu.nextElement();//获取当前循环对应的参数名
        String parametlerValue = request.getParameter(parameterNmae);
        out.println("参数名称:"+parameterNmae + "<br>");
        out.println("参数内容"+ parametlerValue + "<br>");

    }
%>
</body>
</html>
